package cn.jinbyte.starter.data.config;

import cn.jinbyte.data.config.CacheProperties;
import cn.jinbyte.data.config.CryptProperties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

@Data
@ConfigurationProperties(prefix = StarterConst.CONF_PREFIX)
public class DataProperties {

    @NestedConfigurationProperty
    private CryptProperties crypt = new CryptProperties();

    @NestedConfigurationProperty
    private CacheProperties cache = new CacheProperties();
}
